package com.gll.service.impl;

import com.gll.dao.LoginMapper;
import com.gll.pojo.User;
import com.gll.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginServiceImpl implements LoginService {

    private LoginMapper loginMapper;

    @Override
    public User login(String account, String password) {
        return loginMapper.login(account,password);
    }

    @Autowired
    public void setLoginMapper(LoginMapper loginMapper) {
        this.loginMapper = loginMapper;
    }
}
